class CreateOrderComponents < ActiveRecord::Migration
  def change
    create_table :order_components do |t|
      t.integer :order_id
      t.integer :material_num
      t.string :material_name
      t.integer :amount
      t.float :price

      t.timestamps null: false
    end
  end
end
